package com.example.live.adapter

import com.bumptech.glide.Glide
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.example.common.entity.CommendEntity
import com.example.live.R
import com.example.live.entity.GoodsCommentEntity
import com.example.live.entity.ShareEntity

class GoodsCommentAdapter(data:MutableList<GoodsCommentEntity>) :BaseQuickAdapter<GoodsCommentEntity,BaseViewHolder>(R.layout.item_goods_comment_layout,data) {
    override fun convert(holder: BaseViewHolder, item: GoodsCommentEntity) {
        Glide.with(holder.itemView).load(item.userlogo).circleCrop().into(holder.getView(R.id.goods_comment_icon))
        holder.setText(R.id.goods_comment_name,item.nickname)
        holder.setText(R.id.goods_comment_title,item.content)
        holder.setText(R.id.goods_comment_time,item.createtime)
    }
}
